package com.sumover.DAO;

import com.sumover.POJO.Game;
import com.sumover.POJO.GameType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GameMapper {
    int deleteByPrimaryKey(Integer gid);

    int insert(Game record);

    Game selectByPrimaryKey(Integer gid);

    List<Game> selectAll();

    int updateByPrimaryKey(Game record);

    List<Game> queryGameByType(@Param("type") GameType type);

    Game getGameByName(@Param("gamename") String gamename);
}